package com.ssy.lingxi.order.repository;

import com.ssy.lingxi.order.entity.DeliveryOrderDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *  送货单Jpa仓库
 * @author ds
 * @date 2022/3/24
 * @version 2.0.0
 */
@Repository
public interface DeliveryOrderRepository extends JpaRepository<DeliveryOrderDO, Long>, JpaSpecificationExecutor<DeliveryOrderDO> {

    List<DeliveryOrderDO> findAllBySourceTypeAndSourceNo(Integer sourceType,String sourceNo);
}
